package com.lihao.demo1;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.lihao.demo1.databinding.ActivityIntegralMallBinding;
import com.lihao.demo1.utils.BaseCompat;

public class IntegralMallActivity extends AppCompatActivity {

    private ActivityIntegralMallBinding binding;
    private BaseCompat baseCompat;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = DataBindingUtil.setContentView(this, R.layout.activity_integral_mall);
        initView();
        initListener();
    }

    private void initListener() {
        binding.ivBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        binding.ivBuy.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                baseCompat.startActivity(ConfirmOrderActivity.class);
            }
        });
    }

    private void initView() {
        baseCompat=new BaseCompat(this);
    }
}
